package com.tz.online.entity;

import java.util.Date;

public class Book {
	private Long bookId; // 商品ID
	private String bookName; // 商品名称
	private String author; // 作者
	private String publish; // 　出版社
	private Date publishDate; // 出版日期
	private double price; // 单价
	private String introduce; // 图书简介
	private String imgUrl; // 图书的图片所在的地址
	private Category category; // 引用的图书类型

	public Long getBookId() {
		return bookId;
	}

	public void setBookId(Long bookId) {
		this.bookId = bookId;
	}

	public String getBookName() {
		return bookName;
	}

	public void setBookName(String bookName) {
		this.bookName = bookName;
	}

	public String getAuthor() {
		return author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPublish() {
		return publish;
	}

	public void setPublish(String publish) {
		this.publish = publish;
	}

	public Date getPublishDate() {
		return publishDate;
	}

	public void setPublishDate(Date publishDate) {
		this.publishDate = publishDate;
	}

	public double getPrice() {
		return price;
	}

	public void setPrice(double price) {
		this.price = price;
	}

	public String getIntroduce() {
		return introduce;
	}

	public void setIntroduce(String introduce) {
		this.introduce = introduce;
	}

	public String getImgUrl() {
		return imgUrl;
	}

	public void setImgUrl(String imgUrl) {
		this.imgUrl = imgUrl;
	}

	public Category getCategory() {
		return category;
	}

	public void setCategory(Category category) {
		this.category = category;
	}

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("Book [bookId=");
		builder.append(bookId);
		builder.append(", bookName=");
		builder.append(bookName);
		builder.append(", author=");
		builder.append(author);
		builder.append(", publish=");
		builder.append(publish);
		builder.append(", publishDate=");
		builder.append(publishDate);
		builder.append(", price=");
		builder.append(price);
		builder.append(", introduce=");
		builder.append(introduce);
		builder.append(", imgUrl=");
		builder.append(imgUrl);
		builder.append(", category=");
		builder.append(category);
		builder.append("]");
		return builder.toString();
	}

}
